import json

from config import BASE_DIR


def read_json(filename):
    with open(filename,encoding="utf8") as file:
        data_list = json.load(file)
        temp_list=[]
        for data in data_list:
            temp=tuple(data.values())
            temp_list.append(temp)
        return temp_list

if __name__ == '__main__':
    print(read_json(BASE_DIR +'/data/tpshaop.json'))

